package test;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class test {

    @Test
    public void login(){
        ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
//        SysUserService service = context.getBean(SysUserService.class);
//        SysUser sysUser = service.login("admin","1111111");
//        System.out.println(sysUser != null ? sysUser.getRealName() : "用户名或密码不正确");

    }
}
